//@ts-ignore
import { get, post } from '@/common/request.js'

// 日程列表
export const listSchedule = (data: IRequestData) => {
	return post('carer-platform/work/log/schedule/listSchedule', {
		data,
	})
}

// 日程详情
export const scheduleDetail = (data: IRequestData) => {
	return post('carer-platform/work/log/schedule/scheduleDetail', {
		data,
	})
}

// 完成日程
export const finishSchedule = (data: IRequestData) => {
	return post('carer-platform/work/log/schedule/finishSchedule', {
		data,
	})
}

// 新增日程
export const addSchedule = (data: IRequestData) => {
	return post('carer-platform/work/log/schedule/addSchedule', {
		data,
	})
}

// 同步到日历
export const writeToCalendar = (data: IRequestData) => {
	return post('carer-platform/work/log/schedule/writeToCalendar', {
		data,
	})
}

// 修改日程
export const updateSchedule = (data: IRequestData) => {
	return post('carer-platform/work/log/schedule/updateSchedule', {
		data,
	})
}

// 取消日程
export const cancelSchedule = (data: IRequestData) => {
	return post('carer-platform/work/log/schedule/cancelSchedule', {
		data,
	})
}

// 拒绝日程
export const refuseSchedule = (data: IRequestData) => {
	return post('carer-platform/work/log/schedule/refuse', {
		data,
	})
}

// 检查微信管家关联
export const checkRelation = (data: IRequestData) => {
	return post('carer-platform/work/log/schedule/checkRelation', {
		data,
	})
}

// 微信管家二维码
export const getTwoDimensionalCode = (data: IRequestData) => {
	return post('carer-platform/work/log/schedule/getTwoDimensionalCode', {
		data,
	})
}

// 识别日期相关内容
export const getContentByDate = (data: IRequestData) => {
	return post('carer-platform/content/handle/date', {
		data,
	})
}
// 查看日程和行动措施
export const listScheduleByJournalId = (data: IRequestData) => {
	return post('carer-platform/work/log/schedule/listScheduleByJournalId', {
		data,
	})
}
